package com.aviation.sell_ticket.controller;

import com.aviation.sell_ticket.service.CityService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("CityAction")
public class CityController {

    @Resource
    private CityService cityService;

    @PostMapping("cityList")
    public Map<String,Object> getCity(){
        return cityService.getCity();
    }

}
